package com.kingyea.app.market.appExtendInfo.service;

import com.kingyea.app.market.appExtendInfo.bean.AppExtendInfo;

import java.util.List;
import java.util.Map;

/**
 * @author
 * @version v1.0.0
 * @description AppExtendInfo 接口
 * @date Created in 2018-02-10 16:11:06
 */
public interface AppExtendInfoService {

    /**
     * 通过ID查找对象
     *
     * @param id
     * @return
     */
    AppExtendInfo getById(String id) throws Exception;

    /**
     * 列表
     *
     * @param appExtendInfo
     * @return
     */
    Object list(AppExtendInfo appExtendInfo) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     */
    int deleteById(String id) throws Exception;

    /**
     * 添加
     *
     * @param appExtendInfo
     * @return
     */
    AppExtendInfo save(AppExtendInfo appExtendInfo) throws Exception;

    /**
     * 更新
     *
     * @param appExtendInfo
     * @return
     */
    AppExtendInfo update(AppExtendInfo appExtendInfo) throws Exception;

    void test(AppExtendInfo appExtendInfo);

    AppExtendInfo getByAppCode(String code) throws Exception;

    List<AppExtendInfo> getList(Map<String, Object> map) throws Exception;

    /**
     * 删除该app的扩展信息
     */
    Object deletesByAppCode(String appCode) throws Exception;
}
